package us.wili.dev.common.util.httpclient;

import java.util.List;

/**
 * Created by JasonY on 17/6/3.
 */
public class ConnectionManagerProperties {

    public class MaxPerRoute {
        private String hostName;
        private int port;
        private int max;

        public String getHostName() {
            return hostName;
        }

        public void setHostName(String hostName) {
            this.hostName = hostName;
        }

        public int getPort() {
            return port;
        }

        public void setPort(int port) {
            this.port = port;
        }

        public int getMax() {
            return max;
        }

        public void setMax(int max) {
            this.max = max;
        }
    }

    private int maxTotal = 100;
    private int defaultMaxPerRoute = 50;
    private List<MaxPerRoute> maxPerRoutes;

    public int getMaxTotal() {
        return maxTotal;
    }

    public void setMaxTotal(int maxTotal) {
        this.maxTotal = maxTotal;
    }

    public int getDefaultMaxPerRoute() {
        return defaultMaxPerRoute;
    }

    public void setDefaultMaxPerRoute(int defaultMaxPerRoute) {
        this.defaultMaxPerRoute = defaultMaxPerRoute;
    }

    public List<MaxPerRoute> getMaxPerRoutes() {
        return maxPerRoutes;
    }

    public void setMaxPerRoutes(List<MaxPerRoute> maxPerRoutes) {
        this.maxPerRoutes = maxPerRoutes;
    }
}
